#ifndef HATGUY_H
#define HATGUY_H
#include <ClanLib/core.h>
#include <ClanLib/display.h>
#include "entity.h"

class BlockGuy : public Entity
{
	CL_Sprite *stand;

	bool *key_jump;
	bool *key_left;
	bool *key_right;
	
	float gravity;
	float jumpBoost;
	float maxSpeed;
	float groundCoefficient;
	float airCoefficient;
	float frictionCoefficient;

public:
	BlockGuy();
	BlockGuy(CL_Sprite &sprite, bool &jump_key, bool &left_key, bool &right_key);
	BlockGuy(CL_Sprite &sprite, CL_Pointf &initial_position, bool &jump_key, bool &left_key, bool &right_key);
	~BlockGuy();

	virtual inline void logic(float &time);
};

#endif
